package com.halflife.comeElectricity.orderMng.order;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;

/**
 * Created by zhaoyf on 2018/2/14.
 */
public class CustomSerialize extends JsonSerializer<String> {

    public void serialize(String value, JsonGenerator jgen,
                          SerializerProvider provider) throws IOException,
            JsonProcessingException {
//        jgen.writeStartObject();
        jgen.writeRawValue(value);
    }
}
